<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        var obj = {
            myname: '可可',
            sex: '男',
            type: '阿拉斯加犬',
            age: 8,
            color: 'red',
        }
        console.log(obj.myname);
        console.log(obj['sex']);
    </script>
</head>

<body>

</body>

</html>